package com.warren.blog.mapper;

import com.warren.blog.pojo.Book;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

//这个注解表示了这个是一个mybatis的mapper类
//@Mapper
@Repository
public interface BookMapper {

    List<Book> queryBookList();

    Book queryBookById(int id);

    int addBook(Book book);

    int deleteBook(int id);

    int updateBook(Book book);
}
